package ly.jobdu;

import java.util.Scanner;

public class Q1049RemoveChar {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()) {
			String a = scanner.nextLine();
			String b = scanner.nextLine();
			removeChar(a, b);
		}
	}
	public static void removeChar(String str, String a) {
		if (str.contains(a)) {
			str = str.replaceAll(a, "");
		}
		System.out.println(str);
	}
}
